//JournalArticleDetail Page Less
.journal-article-detail-container {

  .journal-article-breadcrumd {
    font-size: 12px;
    margin: 6px;
  }

  .journal-article-page {
    background: #FFFFFF;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.05);
    border-radius: 4px 4px 4px 4px;
    padding: 20px 16px;

    .journal-article-page-header {

      display: flex;
      flex-direction: column;
      gap: 12px;

      .journal-article-title {
        font-weight: 600;
        font-size: 24px;
        color: #4E4E4E;
      }

      .journal-article-subtitle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-right: 16px;

        font-weight: 400;
        font-size: 14px;
        color: #969696;

        .journal-article-source {
          display: flex;
          gap: 48px;
        }

        .journal-article-sp-stats {
          display: flex;
          gap: 12px;
        }
      }

      .journal-article-meta {
        background: #F2F5FA;
        border-radius: 0px 0px 4px 4px;
        padding: 14px 16px;

        display: flex;
        justify-content: space-between;
        align-items: center;


        .ja-meta-item {
          font-size: 12px;
          color: #1E60C5;
          display: flex;
          gap: 6px;

          > span {
            font-weight: 400;
            color: #969696;
            //width: 60px;
          }

          .ja-meta-tags {
            display: flex;
            gap: 10px;
          }
        }

        .journal-article-meta-left {
          display: flex;
          flex-direction: column;
          gap: 6px;
        }

        .journal-article-meta-right {
          display: flex;
          gap: 20px;
        }

        .journal-article-meta-btn {
          cursor: pointer;
          background: #FFFFFF;
          font-weight: 400;
          font-size: 14px;
          color: #1E60C5;

          height: 36px;
          line-height: 36px;
          padding: 0 12px;

          border: 1px solid transparent;

          &:hover {
            background: #F2F5FA;
            border-color: rgba(30, 96, 197, 0.2);
          }


        }
      }
    }

    .journal-article-page-content {
      padding: 16px 0 0 0;

      .journal-article-navs {
        flex: 1;
        display: flex;
        gap: 50px;
        padding: 0;
        margin: 0 0 16px 0;
        list-style: none;

        width: 100%;
        border-bottom: 1px solid #F1F1F1;
        overflow-x: auto;

        > li {
          > a {
            display: block;
            padding: 0;
            height: 34px;
            line-height: 34px;
            font-weight: 400;
            font-size: 16px;
            color: #4E4E4E;
            text-decoration: none;

            &.active {
              font-weight: 600;
              font-size: 18px;
              color: #1E60C5;
              text-underline-offset: 10px;
              text-decoration: underline solid #1E60C5 3px;
            }
          }
        }
      }


      .jats-article {
        padding: 16px 0;
        color: #666;

        .journal-copyright-tip {
          margin-top: 45px;
          border-top: 1px solid #ccc;
          padding-top: 24px;

          > span {
            font-weight: bold;
          }
        }

        .journal-article-part-hide {
          display: none;
        }

        .journal-article-video{
          display: flex;
          flex-wrap: wrap;
          gap: 16px 32px;
          .jav-item{
            video{
              width: 200px;
              height: 110px;
            }
            .jav-item-title{
              text-align: center;
            }
          }

        }

        .journal-article-abstract, .journal-article-fulltext {
          p {
            text-indent: 2em;
          }
        }

        p {
          line-height: 1.5;
          font-size: 16px;
          font-weight: 400;
          margin-bottom: 8px;
        }

        .main-title {
          color: #333;
          font-size: 15px;
          font-weight: bold;
          background: #eee;
          padding: 10px;

          > .section-label {
            margin-right: 8px;
          }
        }

        .section-title {
          color: #333;
          font-size: 14px;
          background: #eee;
          padding: 10px;

          > .section-label {
            margin-right: 8px;
          }
        }

        .panel {
          margin-bottom: 10px;

          p {
            text-indent: 0;
          }

          .panel-header {
            display: flex;
            padding: 10px;
            border: 1px solid #ccc;
            gap: 10px;
            cursor: pointer;

            .panel-thumbnail {
              width: 120px;

              img {
                width: 100%;
                min-height: 80px;
                border: 1px solid rgba(204, 204, 204, 0.4);
              }
            }

            .panel-header-title {
              flex: 1;
              display: flex;
              flex-direction: column;
              justify-content: space-between;
              gap: 10px;

              .panel-caption {
                .panel-label {
                  font-weight: bold;
                }
              }

              .panel-header-extra {
                display: flex;
                gap: 8px;
                justify-content: flex-end;

                > a {
                  background-color: #f7f7f7;
                  border: 1px solid #d9d4d4;
                  cursor: pointer;
                  display: inline-block;
                  height: 25px;
                  line-height: 25px;
                  margin-right: 5px;
                  padding-left: 10px;
                  text-align: left;
                  width: 95px;
                  color: #666;
                }
              }


            }

          }

          .panel-content {
            display: none;
          }

        }

        .section {
          margin-bottom: 16px;
        }


      }
    }
  }
}

.references-tooltip-body {
  max-height: 300px;
  overflow-y: auto;
}

.references-tooltip-body, .jats-article .ref-list {
  display: flex;
  flex-direction: column;

  .ref-content {
    .citation {
      //display: none;
    }
  }

  > .row {
    padding: 16px 0;
    display: flex;
    gap: 12px;
    border-bottom: 1px dashed #ddd;

    p {
      margin-bottom: 0;
    }

    &:last-child {
      border-bottom: none;
    }

    p.ref-label {
      opacity: 0.7;
      display: inline-block;

      &::after {
        content: '.';
      }
    }
  }

}

.jats-article, .journal-article-chart-preview-root {
  .panel-label {
    margin-right: 8px;
    font-weight: bold;
  }

  sup {
    color: #1e60c5;
    cursor: pointer;
  }
}

.journal-article-chart-preview-root {

  .ant-image-preview-mask {
    background-color: rgba(0, 0, 0, 0.8);
  }

  .ant-image-preview-operations,
  .ant-image-preview-close,
  .ant-image-preview-switch-left,
  .ant-image-preview-switch-right {
    background-color: rgba(0, 0, 0, 0.5);
  }

  .ant-image-preview-footer {
    position: relative;
    transform: none;

    .ant-image-preview-progress {
      .panel-caption {
        position: fixed;
        bottom: var(--ant-margin-xl);
        left: 50%;
        color: #fff;
        transform: translateX(-50%);
        background-color: rgba(0, 0, 0, 0.5);
        padding: 12px 24px;
        border-radius: 100px;
        margin-bottom: 0;
      }
    }

    .ant-image-preview-operations {
      position: fixed;
      top: var(--ant-margin-xl);
      right: calc(var(--ant-margin-xl) * 3);
      display: flex;
      flex-direction: row;
      align-items: center;
      color: var(--ant-image-preview-operation-color);
      transform: none;
    }
  }

  .jacp-custom-item {
    padding: 16px;
    background-color: #ffffff;
    border-radius: 6px;

    width: 80%;
    height: 80%;
    overflow: auto;

    table {
      width: 100%;
      color: #666666;
      border: 1px solid #ccc;
      border-collapse: collapse;

      thead {
        font-weight: bold;
      }

      tr {
        border: 1px solid #ccc;

        &:hover {
          background: #e0eff8;
        }

        td {
          border: 1px solid #ccc;
          padding: 6px 3px;
        }
      }
    }
  }
}


.journal_articles_cited_container {
  display: flex;
  flex-direction: column;
  gap: 12px;

  .journal_articles_cited_group {

    .journal_articles_cited_group_title {
      font-weight: bold;
      padding: 12px 0;
      font-size: 14px;
    }

    .journal_articles_cited_group_content {

      .journal_articles_cited_item {
        padding: 6px 0;
      }

      .journal_articles_cited_item_title {

      }
    }
  }
}


@media (max-width: @screen-md-max) {
  .journal-article-detail-container {
    .journal-article-page {
      .journal-article-page-header {
        .journal-article-subtitle{
          flex-direction: column;
          width: 100%;
          gap: 12px;
          .journal-article-source{
            flex-direction: column;
            width: 100%;
            gap: 12px;
          }
          .journal-article-sp-stats{
            flex-direction: column;
            width: 100%;
          }
        }
        .journal-article-meta {
          flex-direction: column;
          width: 100%;
          gap: 32px;
          .journal-article-meta-left{
            width: 100%;
          }
          .journal-article-meta-right{
            flex-direction: column;
            width: 100%;
          }
        }
      }
    }
  }


}
